package com.kuyun.base.mail.util;

import java.util.ResourceBundle;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

/**
 * 读取邮箱配置文件
 * ClassName: ResourceUtil <br/>
 * Function: TODO ADD FUNCTION. <br/>
 * Reason: TODO ADD REASON(可选). <br/>
 * date: 2015年12月29日 上午10:13:40 <br/>
 *
 * @author yanglei
 * @version 
 * @since jdk1.7
 */
public class ResourceUtil {

	private static final Logger logger = LoggerFactory.getLogger(ResourceUtil.class);
	
	public static String getResources(String prop) {
		ResourceBundle rb = ResourceBundle.getBundle("mail");
		String result = rb.getString(prop);
		logger.debug("propertiy " + prop + " :[" + result + "]");
		return result;
	}
}
